<!DOCTYPE html>
<html lang="zh-cn">
   <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <title>{$CONF['mallTitle']}后台管理中心</title>
      <link href="__PUBLIC__/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
      <link href="__ROOT__/Apps/Admin/View/css/AdminLTE.css" rel="stylesheet" type="text/css" />
      <!--[if lt IE 9]>
      <script src="__PUBLIC__/js/html5shiv.min.js"></script>
      <script src="__PUBLIC__/js/respond.min.js"></script>
      <![endif]-->
      <script src="__PUBLIC__/js/jquery.min.js"></script>
      <script src="__PUBLIC__/plugins/bootstrap/js/bootstrap.min.js"></script>
      <script src="__PUBLIC__/js/common.js"></script>
      <script src="__PUBLIC__/plugins/plugins/plugins.js"></script>
<script src="__PUBLIC__/plugins/formValidator/formValidator-4.1.3.js"></script>
<script src="__PUBLIC__/plugins/kindeditor/kindeditor.js"></script>
<script src="__PUBLIC__/plugins/kindeditor/lang/zh_CN.js"></script>
   </head>
   <script>
   function del(id){
	   Plugins.confirm({title:'信息提示',content:'您确定要删除吗?',okText:'确定',cancelText:'取消',okFun:function(){
		   Plugins.closeWindow();
		   Plugins.waitTips({title:'信息提示',content:'正在操作，请稍后...'});
		   $.post("{:U('Admin/Shops/delDeposit')}",{id:id},function(data,textStatus){
					var json = MXC.toJson(data);
					if(json.status=='1'){
						Plugins.setWaitTipsMsg({content:'操作成功',timeout:1000,callback:function(){
							location.reload();
						}});
					}else{
						Plugins.closeWindow();
						parent.showMsg({msg:'操作失败!',status:'danger'});
					}
				});
	      }});
   }
   </script>
   <body class='mxc-page'>
  <a class="btn btn-success glyphicon glyphicon-plus" href="{:U('Admin/Shops/addDeposit')}" style='float:right'>新增</a>
       <div class='mxc-body'>
        <table class="table table-hover table-striped table-bordered mxc-list">
           <thead>
             <tr>
               <th width='30'>序号</th>
               <th width='100'>标题</th>
               <th width='80'>等级</th>
               <th width='80'>金额</th>
               <th width='80'>可发布商品数</th>
               <th width='80'>可转售商品数</th>
               <th width='120'>操作</th>
             </tr>
           </thead>
           <tbody>
            <volist name="lists" id="vo" key='i'>
             <tr>
               <td>{$i}</td>
               <td>{$vo['title']}</td>
               <td>{$vo['level']}</td>
               <td>{$vo['money']}&nbsp;</td>
               <td>{$vo['goodsNum']}&nbsp;</td>
               <td>{$vo['resaleNum']}&nbsp;</td>
               <td width="120">
               <a class="btn btn-default glyphicon glyphicon-pencil" href="{:U('Admin/Shops/addDeposit/id/'. $vo['id'])}">修改</a>
               <button type="button" class="btn btn-default glyphicon glyphicon-trash" onclick="javascript:del({$vo['id']})">刪除</button>
               </td>
             </tr>
             </volist>
             <tr>
                <td colspan='11' align='center'>{$Page['pager']}</td>
             </tr>
           </tbody>
        </table>
       </div>
   </body>
</html>